// Chat Content
.chat-content {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: $spacer 0;

  .chat-list {
    display: flex;
    position: relative;
    padding: 0 $spacer 0 4.5*$spacer;
    margin-top: $spacer/4;

    .userimg {
      position: absolute;
      left: $spacer;
      top: 0;

      img {
        width: 2.5*$spacer;
        height: 2.5*$spacer;
        border-radius: 50%;
      }
    }

    .chat {
      user-select: text;
      max-width: 320px;
      width: auto;
      background-color: $gray-200;
      padding: $spacer/2 $spacer;
      border-radius: 1.25*$spacer;
      // border-top-left-radius: $spacer/4;

      &.chat-before {
        // border-bottom-left-radius: $spacer/4;
      }
    }

    .chat-btn {
      display: flex;
      padding: $spacer/2;
      margin-left: $spacer/4;
      border: 0;
      color: $gray-400;
      background-color: transparent;
      cursor: pointer;
      opacity: 0;
      @include hover-focus {
        outline: 0;
      }

      i {
        font-size: 1.25rem;
      }
    }

    .chat-btn-danger {
      color: $danger;
    }

    &:hover .chat-btn {
      opacity: 1;
    }
  }

  .chat-time {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    padding-left: 4.5*$spacer;
    padding-right: $spacer;
    margin-top: 0.25*$spacer;
    margin-bottom: $spacer;

    i {
      font-size: 14px;
      font-weight: bold;
    }

    + .chat-list {
      .chat.chat-before {
        // border-top-left-radius: 1.25*$spacer;
      }
    }

    + .chat-list-right {
      .chat.chat-before {
        // border-top-left-radius: 1.25*$spacer;
        // border-top-right-radius: 1.25*$spacer;
      }
    }
  }

  .chat-list-right {
    flex-direction: row-reverse;
    padding: 0 $spacer;

    .chat {
      color: white;
      background-color: rgba($primary, 0.8);
      // border-top-left-radius: 1.25*$spacer;
      // border-top-right-radius: $spacer/4;

      &.chat-before {
        // border-bottom-left-radius: 1.25*$spacer;
        // border-bottom-right-radius: $spacer/4;
      }
    }

    .chat-btn {
      margin-left: 0;
      margin-right: $spacer/4;
    }

    .chat-btn-danger {
      margin-right: 0;
    }
  }
}